<template>
  <div id="app">
    <header>
        <router-view name="header"/>
    </header>
    <main>
      <keep-alive>
        <router-view />
      </keep-alive>
    </main>
    <footer>
        <router-view name="footer"/>
    </footer>
  </div>
</template>

<style lang="scss">
html,body,.app {
  height: 100%;
  
}
.app {
  display: flex;
  flex-direction: column;
  main {
    flex: 1;
    overflow: auto;
  }
}
</style>
